/**
 * 
 */
package fr.laas.gestionProjets.services;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import fr.laas.gestionProjets.modeles.NoeudArbre;

/**
 * @author Mo
 *
 */
@ManagedBean
@SessionScoped
public class ServiceArbre implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	public NoeudArbre recupereArbre(){
		
		NoeudArbre racine = new NoeudArbre(null,"racine");
		
		NoeudArbre noeudProjet1 = new NoeudArbre(racine,"Projet1");
		NoeudArbre noeudProjet2 = new NoeudArbre(racine,"Projet2");
		NoeudArbre noeudProjet3 = new NoeudArbre(racine,"Projet3");
		
		NoeudArbre noeudDossier11 = new NoeudArbre(noeudProjet1,"Dossier11");
		NoeudArbre noeudDossier12 = new NoeudArbre(noeudProjet1,"Dossier12");
		NoeudArbre noeudDossier13 = new NoeudArbre(noeudProjet1,"Dossier13");
		
		NoeudArbre noeudDossier21 = new NoeudArbre(noeudProjet2,"Dossier21");
		
		NoeudArbre noeudDossier31 = new NoeudArbre(noeudProjet3,"Dossier31");
		
		
		NoeudArbre noeudFichier111 = new NoeudArbre(noeudDossier11,"Fichier 111");
		
		NoeudArbre noeudFichier311 = new NoeudArbre(noeudProjet3,"Fichier311");
		
		return racine;
	}
}
